package com.example.yiwei.crm.view.activity.JYCoordingActivity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.example.yiwei.crm.R;
import com.example.yiwei.crm.view.Class.listviewClass.AutoListView;
import com.example.yiwei.crm.view.activity.jtCustomer.JDcoorActivity;

import static com.example.yiwei.crm.R.id.jyjd_linear_shenhe;


public class JYjdActivity extends AppCompatActivity {
private LinearLayout linearLayout_shenhe,linearLayout_manyidu;
    private ImageView img_back;
    private ImageView img_search,img_luru,img_me,img_tj;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jyjd);
        img_back= (ImageView) findViewById(R.id.detailed_doc_img_back);
        img_luru= (ImageView) findViewById(R.id.item_image_lr);
        img_me= (ImageView) findViewById(R.id.item_image_w);
        img_tj= (ImageView) findViewById(R.id.item_image_tj);
        img_search= (ImageView) findViewById(R.id.item_image_cx);
        linearLayout_shenhe= (LinearLayout) findViewById(jyjd_linear_shenhe);
        linearLayout_manyidu= (LinearLayout) findViewById(R.id.jyjd_linear_manyidu);
        linearLayout_shenhe.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(JYjdActivity.this,JYSearchSH1Activity.class);
                startActivity(intent);
                finish();
            }
        });
        linearLayout_manyidu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(JYjdActivity.this,JYAddJDActivity.class);
                startActivity(intent);
                finish();
            }
        });

        img_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        img_search.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(JYjdActivity.this, JDcoorActivity.class);
                intent.putExtra("ii","ii");
                startActivity(intent);
                finish();
            }
        });
        img_luru.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(JYjdActivity.this, JDcoorActivity.class);
                startActivity(intent);
                finish();
            }
        });
        img_tj.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(JYjdActivity.this, JDcoorActivity.class);
                intent.putExtra("tt","tt");
                startActivity(intent);
                finish();
            }
        });
        img_me.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(JYjdActivity.this, JDcoorActivity.class);
                intent.putExtra("me","me");
                startActivity(intent);
                finish();
            }
        });
    }
}
